package com.dq.repository.record;

import com.dq.domain.org.Org;
import com.dq.domain.record.RestDayRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author luchangtong
 * @Date 2019/11/21 17:08
 */
@Repository
public interface RestDayRecordRepository extends JpaRepository<RestDayRecord, Long> {
    List<RestDayRecord> findByOrgAndBeginTimeLessThanEqualAndEndTimeGreaterThanEqualOrBeginTimeLessThanEqualAndEndTimeGreaterThanEqual(Org org, Long beginTime, Long beginTime01, Long endTime, Long endTime01);
}
